package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.GraphInfo;
import com.atguigu.lease.model.enums.ItemType;
import com.atguigu.lease.web.app.vo.graph.GraphVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author liubo
* @description 针对表【graph_info(图片信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.GraphInfo
*/
public interface GraphInfoMapper extends BaseMapper<GraphInfo> {

    /**
     * @author gengjian
     * @date 2024/12/15 17:32:24
     * 根据房间或公寓类型和id获取图片列表vo，一个接口两用，房间和公寓通用
     */
    List<GraphVo> selectListGraphVoByItemTypeAndId(@Param("type") ItemType type, @Param("id") Long id);
}




